const timeRandom = () => { return Math.random() * 10000 }

const getOne =  (collbec) =>   setTimeout(() =>  (collbec('a'))
  ,timeRandom())
  const getSecond =  (collbec) =>   setTimeout(() =>   (collbec('b'))
  ,timeRandom())
  const getThird =  (collbec) =>   setTimeout(() =>   (collbec('c'))
  ,timeRandom())



const cb = (fn) => new Promise((res) => fn(res) )

const res = Promise.all([cb(getOne),cb(getSecond),cb(getThird)]).then((el)=>el.forEach((ele)=>console.log(ele)))

